package com.example.ywj.toutiao.compoents;

import android.content.Context;
import android.util.AttributeSet;

import cn.jzvd.JZMediaManager;
import cn.jzvd.JZVideoPlayerStandard;

public class JZ extends JZVideoPlayerStandard {

    public JZ(Context context) {

        super(context);

    }

    public JZ(Context context, AttributeSet attrs) {

        super(context, attrs);

    }

    @Override

    public void onVideoSizeChanged() {

//        super.onVideoSizeChanged();

        if (JZMediaManager.textureView !=null) {

            JZMediaManager.textureView.setVideoSize(textureViewContainer.getWidth(),textureViewContainer.getHeight());//视频大小与控件大小一致

        }
    }

}
